package com.hsgene.consumables.persistence;

import com.hsgene.consumables.domain.v1.GeneticGoodsApply;
import com.hsgene.consumables.domain.v1.GeneticGoodsApplyHistory;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 耗材申领Repository
 *
 * @author wangbing
 * @version 1.0, 2018/9/17
 */
public interface GoodsApplyRepository {

    /**
     * 批量保存耗材申请信息
     *
     * @param applies 耗材申请信息
     */
    void saveBatch(@Param("applies") List<GeneticGoodsApply> applies);

    /**
     * 批量更新耗材申请信息
     * @param appliesUpdate
     */
    void updateBatch(@Param("applies") List<GeneticGoodsApply> appliesUpdate);

    /**
     * 根据主键批量删除apply
     * @param list
     */
    void deleteByApplys(@Param("list") String[] list);

    /**
     * 根据申请编号查询地服id
     * @param applyNo
     * @return
     */
    String groundServanceId(@Param("applyNo") String applyNo);
}
